<?php

if($dbprocess == 'addnote' ){
	// Cosas para crear nuevo proyecto
	$data=array();
	$data['text'] = $_POST['text'];
	$data['screen_id'] = $_POST['screen_id'];
	$data['user_id'] = $_SESSION['userId'];
	$data['create_at'] = date("Y-m-d");
	
	$r=createNote($data);
	
	if($r){
		$id=mysql_insert_id();
		$_SESSION['messages'][]="";
		header("Location:index.php?v=screen&id=".$_POST['screen_id']."&pid=".$_POST['proyect_id']);
	}else{
		$_SESSION['messages'][]="Error: ";
	}

}



?>